﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CoreShop.Model
{
    /// <summary>
    /// 餐饮支付明细表
    /// </summary>
    public partial class corecmsfoodorderpayment
    {
        /// <summary>
        /// 序列
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "id", IsPrimaryKey = true)]
        public Int64 id { get; set; }

        /// <summary>
        /// 订单号
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "orderId", IsNullable = true)]
        public Int64 orderId { get; set; }

        /// <summary>
        /// 支付Id
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "paymentId", IsNullable = true)]
        public int paymentId { get; set; }

        /// <summary>
        /// 支付编码
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "paymentCode", IsNullable = true)]
        public String paymentCode { get; set; }

        /// <summary>
        /// 返回值
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "payNo", IsNullable = true)]
        public String payNo { get; set; }

        /// <summary>
        /// 返回值
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "refPayNo", IsNullable = true)]
        public String refPayNo { get; set; }

        /// <summary>
        /// 支付金额
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "payAmount", IsNullable = true)]
        public Decimal payAmount { get; set; }

        /// <summary>
        /// 给付金额
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "takeAmount")]
        public Decimal takeAmount { get; set; }

        [SqlSugar.SugarColumn(ColumnName = "mchNo", IsNullable = true)]
        public string mchNo { get; set; }

        [SqlSugar.SugarColumn(ColumnName = "refMchNo", IsNullable = true)]
        public string refMchNo { get; set; }

        [SqlSugar.SugarColumn(ColumnName = "responseCode", IsNullable = true)]
        public string responseCode { get; set; }

        /// <summary>
        /// 原Id,corecmsfoodorderpayment.sourceId=corecmsfoodorderpayment.id)
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "sourceId", IsNullable = true)]
        public Int64 sourceId { get; set; } = 0;

        /// <summary>
        /// 支付结果(支付是否得到确认,0为单边帐）
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "outcomeType", IsNullable = true)]
        public int outcomeType { get; set; } = 0;
    }
}